package com.csoa.community.requests;

import org.json.JSONException;

import com.csoa.community.net.ErrorMsg;
import com.csoa.community.utils.Json;
import com.csoa.community.utils.StringUtils;

public class OffDocDirectForwardRequest extends AbstractRequest {

	public String DisName;
	public String GUID;
	public OffDocDirectForwardRequest() {
		super(OFFICIAL_DOC_DIRECT_FORWARD_METHOD);
	}

	

	@Override
	protected void parseRemaingInfo(String json) throws ErrorMsg, JSONException {
		if(!StringUtils.isEmpty(json)) {
			String stadard = json.replace("[", "").replace("]", "");
			Json disNameJson = new Json(stadard);
			DisName = disNameJson.getString("DisName");
			GUID = disNameJson.getString("GUID");
			
		}
		
	}
}
